package com.spring.demo.pojo;

/**
 * @version 1.0.0
 * @Date: 2022/5/25 16:09
 * @Author ZhuYouBin
 * @Description
 */
public class UserService {

    private UserDao userDao;

    public void test() {
        System.out.println("开始执行UserService类的test()方法......");
        // 这里调用 userDao 类中的 create() 方法
        userDao.create();
        System.out.println("执行结束");
    }

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
}
